#include <gmlib/sm9/internal/sm9_field.h>
#include <stdexcept>
#include <cstring>

using namespace sm9::internal;

void test_sm9_fp_tpl()
{
    sm9_fp_t    a, c;
    std::uint8_t c_data[32];

    static std::uint8_t a0[32] = {0x94,0xea,0xd5,0xac,0xdf,0xfd,0x77,0x1e,0xa9,0x4b,0x1f,0x82,0xc3,0x28,0x01,0x09,0x7f,0x13,0x92,0xa0,0xc8,0xda,0x9b,0xeb,0xdd,0x2e,0xd3,0xc3,0xd0,0x90,0xa0,0xb6};
    static std::uint8_t c0[32] = {0x52,0x40,0x81,0x06,0x9a,0xb1,0x17,0x78,0x4f,0xda,0x07,0xe8,0x5e,0x5a,0x74,0x92,0x39,0x55,0x91,0x4c,0x25,0x99,0xf6,0x0b,0xcc,0xad,0x44,0xfb,0xab,0x0f,0x57,0x28};
    sm9_fp_from_bytes(a, a0);
    sm9_fp_tpl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c0, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_tpl");
    }
    static std::uint8_t a1[32] = {0x2b,0x31,0x89,0x94,0x7d,0xf6,0xc6,0x54,0x3c,0x80,0x39,0x8f,0x92,0x67,0xad,0xe4,0x02,0x1a,0xa0,0xb8,0x08,0x5e,0xba,0x1a,0x67,0x68,0x7f,0xb5,0x10,0xda,0x32,0x92};
    static std::uint8_t c1[32] = {0x81,0x94,0x9c,0xbd,0x79,0xe4,0x52,0xfc,0xb5,0x80,0xac,0xae,0xb7,0x37,0x09,0xac,0x06,0x4f,0xe2,0x28,0x19,0x1c,0x2e,0x4f,0x36,0x39,0x7f,0x1f,0x32,0x8e,0x97,0xb6};
    sm9_fp_from_bytes(a, a1);
    sm9_fp_tpl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c1, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_tpl");
    }
    static std::uint8_t a2[32] = {0x99,0xed,0x4a,0x8a,0xb3,0xa1,0x34,0x8a,0x07,0x64,0xf7,0x5f,0x49,0x3a,0xf6,0xe2,0xe9,0x33,0xda,0x8e,0xad,0xa7,0x69,0x72,0xa9,0x1d,0xc6,0x46,0x17,0x46,0x78,0xf7};
    static std::uint8_t c2[32] = {0x61,0x47,0xdf,0xa0,0x15,0x9c,0x4f,0xba,0x6a,0x27,0x8f,0x7d,0xf0,0x93,0x56,0x1e,0x77,0xb6,0x69,0x15,0xd4,0x00,0x5e,0xa0,0x30,0x7a,0x1c,0x82,0x7f,0x30,0xdf,0xeb};
    sm9_fp_from_bytes(a, a2);
    sm9_fp_tpl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c2, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_tpl");
    }
    static std::uint8_t a3[32] = {0x73,0x01,0x1f,0xb9,0x9b,0xe0,0x84,0xcc,0xb2,0x1b,0xdc,0xed,0x35,0x9b,0xb9,0x55,0xd5,0x88,0x93,0xdf,0xb6,0xca,0x53,0x61,0x86,0xf4,0x5d,0x62,0xdf,0xc2,0x58,0x0a};
    static std::uint8_t c3[32] = {0xa2,0xc3,0x5f,0x2c,0xd0,0xfd,0xe7,0x74,0x40,0x4f,0xeb,0x77,0xab,0x44,0x64,0xbc,0x5e,0xa7,0x28,0x54,0x09,0xe4,0x0b,0x48,0xaf,0x6d,0x7d,0x00,0xbb,0xf5,0xc2,0xa1};
    sm9_fp_from_bytes(a, a3);
    sm9_fp_tpl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c3, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_tpl");
    }
    static std::uint8_t a4[32] = {0x2f,0x5a,0x16,0x08,0x4e,0xa5,0xdf,0x01,0x75,0x3d,0x36,0x75,0x93,0x44,0x8a,0xe9,0xec,0x52,0x96,0xb5,0x68,0xca,0x46,0x26,0x44,0x6a,0xd8,0xa9,0x13,0xc1,0x43,0x4f};
    static std::uint8_t c4[32] = {0x8e,0x0e,0x42,0x18,0xeb,0xf1,0x9d,0x04,0x5f,0xb7,0xa3,0x60,0xb9,0xcd,0xa0,0xbd,0xc4,0xf7,0xc4,0x20,0x3a,0x5e,0xd2,0x72,0xcd,0x40,0x89,0xfb,0x3b,0x43,0xc9,0xed};
    sm9_fp_from_bytes(a, a4);
    sm9_fp_tpl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c4, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_tpl");
    }
    static std::uint8_t a5[32] = {0x32,0x5f,0x02,0xb0,0xe4,0x0a,0x59,0x63,0x18,0x76,0x80,0x63,0x41,0x37,0x9e,0xeb,0xe8,0xe7,0x9d,0x88,0x1b,0x3e,0xeb,0x03,0xf4,0x25,0x5c,0xa3,0x26,0x44,0xf0,0xc6};
    static std::uint8_t c5[32] = {0x97,0x1d,0x08,0x12,0xac,0x1f,0x0c,0x29,0x49,0x63,0x81,0x29,0xc3,0xa6,0xdc,0xc3,0xba,0xb6,0xd8,0x98,0x51,0xbc,0xc1,0x0b,0xdc,0x70,0x15,0xe9,0x72,0xce,0xd2,0x52};
    sm9_fp_from_bytes(a, a5);
    sm9_fp_tpl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c5, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_tpl");
    }
    static std::uint8_t a6[32] = {0x85,0x66,0xf4,0xbc,0xb2,0xc4,0x5b,0x66,0x23,0x67,0x91,0xa6,0x56,0x11,0x8d,0xad,0xa6,0x0b,0x40,0x2d,0xe6,0x17,0xe2,0x36,0x97,0x57,0x1f,0x73,0x83,0x0d,0x72,0xcc};
    static std::uint8_t c6[32] = {0x23,0xb4,0xde,0x36,0x13,0x05,0xc4,0x4e,0xbe,0x2f,0x5e,0x53,0x17,0x17,0x1a,0x7e,0xae,0x3c,0x99,0xf3,0x7d,0x51,0xc8,0xeb,0xfb,0x26,0x28,0x0a,0xc2,0x85,0xcd,0x6a};
    sm9_fp_from_bytes(a, a6);
    sm9_fp_tpl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c6, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_tpl");
    }
    static std::uint8_t a7[32] = {0x27,0xdc,0xde,0xac,0x57,0x34,0xc5,0x94,0x37,0xe2,0xfe,0xb6,0x8d,0x26,0xe6,0x48,0x62,0x95,0xe9,0x21,0xed,0x7c,0x14,0xb3,0x32,0xa6,0x7f,0x25,0x7a,0xc0,0x82,0xca};
    static std::uint8_t c7[32] = {0x77,0x96,0x9c,0x05,0x05,0x9e,0x50,0xbc,0xa7,0xa8,0xfc,0x23,0xa7,0x74,0xb2,0xd9,0x27,0xc1,0xbb,0x65,0xc8,0x74,0x3e,0x19,0x97,0xf3,0x7d,0x70,0x70,0x41,0x88,0x5e};
    sm9_fp_from_bytes(a, a7);
    sm9_fp_tpl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c7, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_tpl");
    }
    static std::uint8_t a8[32] = {0x0c,0x56,0xa4,0xd3,0xb1,0xab,0xf4,0x2a,0x9e,0xdb,0x54,0xf1,0x53,0x76,0xcd,0xc4,0x10,0xdc,0xb1,0x94,0x5f,0x51,0xe5,0x79,0x92,0xba,0x6c,0xee,0x20,0x17,0x0f,0xd3};
    static std::uint8_t c8[32] = {0x25,0x03,0xee,0x7b,0x15,0x03,0xdc,0x7f,0xdc,0x91,0xfe,0xd3,0xfa,0x64,0x69,0x4c,0x32,0x96,0x14,0xbd,0x1d,0xf5,0xb0,0x6c,0xb8,0x2f,0x46,0xca,0x60,0x45,0x2f,0x79};
    sm9_fp_from_bytes(a, a8);
    sm9_fp_tpl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c8, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_tpl");
    }
    static std::uint8_t a9[32] = {0x03,0x16,0x1e,0xf7,0xe5,0x2b,0x0d,0x34,0xe6,0xd3,0x75,0x49,0x9b,0x95,0x5e,0x68,0xef,0x4b,0x89,0xb6,0x10,0xd7,0x70,0xc3,0x54,0xda,0x27,0x5b,0x99,0x57,0x10,0xf5};
    static std::uint8_t c9[32] = {0x09,0x42,0x5c,0xe7,0xaf,0x81,0x27,0x9e,0xb4,0x7a,0x5f,0xdc,0xd2,0xc0,0x1b,0x3a,0xcd,0xe2,0x9d,0x22,0x32,0x86,0x52,0x49,0xfe,0x8e,0x76,0x12,0xcc,0x05,0x32,0xdf};
    sm9_fp_from_bytes(a, a9);
    sm9_fp_tpl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c9, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_tpl");
    }
    static std::uint8_t a10[32] = {0x62,0xa4,0xe2,0xd9,0xd2,0x1e,0x8e,0xeb,0x93,0x50,0x1b,0xe1,0x62,0x00,0x9b,0xe0,0x08,0xbd,0x7a,0x3b,0xa8,0x26,0x51,0x38,0x99,0x9d,0x0d,0x6a,0xa0,0xa5,0x35,0x38};
    static std::uint8_t c10[32] = {0x71,0xae,0xa8,0x8d,0x73,0xb8,0x05,0xd0,0xe3,0xec,0xa8,0x54,0x30,0x73,0x0c,0x5a,0xf8,0x45,0xdb,0x67,0xdd,0xf8,0x04,0xcd,0xe7,0x67,0x8d,0x17,0xfe,0x9e,0x5a,0x2b};
    sm9_fp_from_bytes(a, a10);
    sm9_fp_tpl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c10, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_tpl");
    }
    static std::uint8_t a11[32] = {0x36,0xc0,0xcb,0xce,0xa1,0x21,0x5f,0xca,0xc8,0x41,0x21,0x3e,0xd4,0x78,0xe0,0x5a,0x8c,0xa6,0x30,0x4d,0x77,0x96,0x8b,0x35,0xfb,0x41,0xf0,0xaa,0x7e,0x7f,0x2b,0xa3};
    static std::uint8_t c11[32] = {0xa4,0x42,0x63,0x6b,0xe3,0x64,0x1f,0x60,0x58,0xc3,0x63,0xbc,0x7d,0x6a,0xa1,0x0f,0xa5,0xf2,0x90,0xe8,0x66,0xc3,0xa1,0xa1,0xf1,0xc5,0xd1,0xff,0x7b,0x7d,0x82,0xe9};
    sm9_fp_from_bytes(a, a11);
    sm9_fp_tpl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c11, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_tpl");
    }
    static std::uint8_t a12[32] = {0x45,0x8e,0x75,0x50,0xf7,0x6f,0x6b,0x7c,0x67,0x89,0x06,0x6a,0xdc,0xb5,0x20,0x80,0x5a,0xb5,0xb6,0x35,0x1e,0x76,0x2e,0xb9,0x0a,0x62,0xab,0x09,0xa2,0xc8,0x2e,0x39};
    static std::uint8_t c12[32] = {0x1a,0x6b,0x5f,0xf2,0xe3,0xaa,0x9b,0x83,0x60,0x97,0x67,0xf0,0xa0,0x90,0x9a,0x3b,0xee,0x2e,0x8f,0x54,0x40,0xe7,0x9d,0x4f,0x39,0xb8,0x65,0xf5,0x05,0x07,0x45,0x2e};
    sm9_fp_from_bytes(a, a12);
    sm9_fp_tpl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c12, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_tpl");
    }
    static std::uint8_t a13[32] = {0x22,0xb3,0x1b,0x03,0x9f,0xfe,0x29,0xc8,0xf2,0x01,0x63,0xd5,0x21,0x7b,0xef,0xe8,0x73,0x8e,0xe1,0x3e,0x4b,0x53,0x2d,0x0d,0xde,0x3a,0xff,0x85,0x3f,0xee,0xcc,0xf3};
    static std::uint8_t c13[32] = {0x68,0x19,0x51,0x0a,0xdf,0xfa,0x7d,0x5a,0xd6,0x04,0x2b,0x7f,0x64,0x73,0xcf,0xb9,0x5a,0xac,0xa3,0xba,0xe1,0xf9,0x87,0x29,0x9a,0xb0,0xfe,0x8f,0xbf,0xcc,0x66,0xd9};
    sm9_fp_from_bytes(a, a13);
    sm9_fp_tpl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c13, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_tpl");
    }
    static std::uint8_t a14[32] = {0x49,0xc7,0x08,0x15,0xa2,0xf0,0x6c,0x33,0xe1,0x45,0x88,0x79,0xf2,0xfc,0x13,0x19,0x32,0xc0,0x9d,0xdf,0xd9,0xe2,0xdd,0x45,0xcd,0x57,0x67,0x2d,0xe3,0xe4,0xa1,0xb7};
    static std::uint8_t c14[32] = {0x27,0x15,0x18,0x40,0xe6,0x2d,0x9d,0xa9,0xcd,0xcc,0xee,0x1d,0xe3,0x65,0x72,0x06,0x76,0x4f,0x46,0x54,0x73,0x2d,0xa8,0xf5,0x82,0x96,0x9a,0x61,0xc8,0x5c,0x9f,0xa8};
    sm9_fp_from_bytes(a, a14);
    sm9_fp_tpl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c14, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_tpl");
    }
    static std::uint8_t a15[32] = {0x19,0x4c,0x4f,0xd3,0x11,0x7a,0x30,0x81,0x13,0x7d,0x2a,0xe2,0xc7,0xd9,0x9c,0xad,0x24,0xeb,0xd3,0x5f,0x23,0x37,0x4c,0x10,0x27,0xd8,0x67,0x8b,0xcb,0x82,0x74,0xb7};
    static std::uint8_t c15[32] = {0x4b,0xe4,0xef,0x79,0x34,0x6e,0x91,0x83,0x3a,0x77,0x80,0xa8,0x57,0x8c,0xd6,0x07,0x6e,0xc3,0x7a,0x1d,0x69,0xa5,0xe4,0x30,0x77,0x89,0x36,0xa3,0x62,0x87,0x5e,0x25};
    sm9_fp_from_bytes(a, a15);
    sm9_fp_tpl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c15, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_tpl");
    }
    static std::uint8_t a16[32] = {0x70,0x8e,0x22,0x34,0x52,0xf8,0x4d,0x3f,0xb9,0x14,0x76,0xc0,0x08,0x97,0x33,0x66,0x6e,0x89,0xcf,0xfb,0x8f,0x36,0xc1,0xa0,0x6d,0xa1,0x40,0x4b,0xb7,0x85,0x1d,0xe0};
    static std::uint8_t c16[32] = {0x9b,0x6a,0x66,0x9c,0xf6,0x45,0x40,0xcd,0x55,0x39,0xb8,0xf0,0x24,0x36,0xd2,0xee,0x29,0xaa,0xdc,0xa7,0x93,0x29,0x56,0x05,0x63,0x74,0x25,0xbb,0x43,0x3e,0x14,0x23};
    sm9_fp_from_bytes(a, a16);
    sm9_fp_tpl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c16, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_tpl");
    }
    static std::uint8_t a17[32] = {0x42,0x1a,0x81,0x56,0x8e,0xb9,0xe2,0x2d,0xf5,0x7e,0x7b,0xb6,0x7f,0x56,0x24,0xbb,0x19,0x86,0x58,0x46,0x7d,0x5e,0x12,0x56,0x99,0xec,0x1d,0x03,0x60,0x92,0x0e,0x77};
    static std::uint8_t c17[32] = {0x10,0x0f,0x84,0x03,0xa9,0x89,0xff,0x98,0x0a,0x77,0xc7,0xd3,0x88,0x73,0xa6,0xec,0x2a,0xa0,0x75,0x88,0x5d,0x9f,0x48,0x27,0xe8,0x54,0xbb,0xe2,0x3e,0x64,0xe5,0xe8};
    sm9_fp_from_bytes(a, a17);
    sm9_fp_tpl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c17, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_tpl");
    }
    static std::uint8_t a18[32] = {0x3b,0x4a,0x9a,0x2e,0x78,0xe6,0xcb,0x24,0x09,0x96,0x08,0xa4,0xb1,0x9c,0xf5,0xdb,0x25,0x63,0x28,0x86,0xd2,0x4a,0xf0,0x11,0x15,0xe2,0x36,0xd9,0x6c,0x5c,0x5e,0xc8};
    static std::uint8_t c18[32] = {0xb1,0xdf,0xce,0x8b,0x6a,0xb4,0x61,0x6c,0x1c,0xc2,0x19,0xee,0x14,0xd6,0xe1,0x91,0x70,0x29,0x79,0x94,0x76,0xe0,0xd0,0x33,0x41,0xa6,0xa4,0x8c,0x45,0x15,0x1c,0x58};
    sm9_fp_from_bytes(a, a18);
    sm9_fp_tpl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c18, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_tpl");
    }
    static std::uint8_t a19[32] = {0x1b,0x7a,0x22,0x1a,0x21,0xb2,0x4d,0xdd,0xe2,0x70,0x37,0x74,0xbf,0x9d,0x16,0x59,0x4b,0x30,0xe2,0xfe,0x60,0xb5,0x3b,0xcb,0x34,0xf0,0xaa,0xdd,0xc7,0xff,0xe7,0xe1};
    static std::uint8_t c19[32] = {0x52,0x6e,0x66,0x4e,0x65,0x16,0xe9,0x99,0xa7,0x50,0xa6,0x5e,0x3e,0xd7,0x43,0x0b,0xe1,0x92,0xa8,0xfb,0x22,0x1f,0xb3,0x61,0x9e,0xd2,0x00,0x99,0x57,0xff,0xb7,0xa3};
    sm9_fp_from_bytes(a, a19);
    sm9_fp_tpl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c19, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_tpl");
    }
    static std::uint8_t a20[32] = {0x20,0x3e,0xdf,0xb2,0xa5,0x64,0xaf,0x24,0xa0,0xa2,0x0d,0xf5,0x43,0x33,0xc1,0x00,0x94,0xb7,0x12,0xf0,0x3f,0xb9,0xc7,0x74,0x16,0xec,0x14,0x2e,0xb3,0xa3,0xc9,0xe3};
    static std::uint8_t c20[32] = {0x60,0xbc,0x9f,0x17,0xf0,0x2e,0x0d,0x6d,0xe1,0xe6,0x29,0xdf,0xc9,0x9b,0x43,0x01,0xbe,0x25,0x38,0xd0,0xbf,0x2d,0x56,0x5c,0x44,0xc4,0x3c,0x8c,0x1a,0xeb,0x5d,0xa9};
    sm9_fp_from_bytes(a, a20);
    sm9_fp_tpl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c20, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_tpl");
    }
    static std::uint8_t a21[32] = {0x8c,0x0a,0x7f,0x07,0x4f,0x36,0xd2,0x3a,0xfb,0xa3,0xcf,0xdb,0x12,0xcd,0xbf,0x89,0x1f,0xe2,0xec,0xf8,0x01,0x68,0x2a,0xf1,0x56,0x4d,0x4e,0xf3,0x4e,0x66,0x29,0xde};
    static std::uint8_t c21[32] = {0x37,0x9f,0x7d,0x15,0xe8,0x5d,0x28,0xcd,0x46,0xe4,0x18,0xf1,0x4d,0x4b,0xb0,0x11,0x1b,0xc3,0xa0,0x51,0xcf,0x42,0xa3,0x1c,0x38,0x08,0xb6,0x8a,0x24,0x8f,0xf2,0xa0};
    sm9_fp_from_bytes(a, a21);
    sm9_fp_tpl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c21, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_tpl");
    }
    static std::uint8_t a22[32] = {0x21,0x4e,0xf0,0xd5,0xa5,0x98,0xd7,0xf3,0xf8,0x16,0x70,0x92,0xa1,0x9e,0xcf,0x83,0xda,0xb5,0xa4,0xd5,0x10,0xb6,0xe2,0x67,0x0f,0x76,0xe3,0x24,0x05,0xa0,0x11,0x5c};
    static std::uint8_t c22[32] = {0x63,0xec,0xd2,0x80,0xf0,0xca,0x87,0xdb,0xe8,0x43,0x51,0xb7,0xe4,0xdc,0x6e,0x8b,0x90,0x20,0xee,0x7f,0x32,0x24,0xa7,0x35,0x2e,0x64,0xa9,0x6c,0x10,0xe0,0x34,0x14};
    sm9_fp_from_bytes(a, a22);
    sm9_fp_tpl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c22, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_tpl");
    }
    static std::uint8_t a23[32] = {0x1c,0x04,0xec,0x57,0x1e,0xc0,0x4e,0x49,0x60,0xc9,0xb7,0x47,0x5f,0x9d,0xd1,0x45,0x94,0x59,0x65,0xa6,0xa9,0x34,0xca,0x8e,0x0d,0x15,0x88,0x78,0xb8,0x1b,0x2b,0x94};
    static std::uint8_t c23[32] = {0x54,0x0e,0xc5,0x05,0x5c,0x40,0xea,0xdc,0x22,0x5d,0x25,0xd6,0x1e,0xd9,0x73,0xd0,0xbd,0x0c,0x30,0xf3,0xfb,0x9e,0x5f,0xaa,0x27,0x40,0x99,0x6a,0x28,0x51,0x82,0xbc};
    sm9_fp_from_bytes(a, a23);
    sm9_fp_tpl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c23, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_tpl");
    }
    static std::uint8_t a24[32] = {0x07,0xe4,0x07,0xdf,0xf7,0xef,0x9f,0x86,0x58,0x56,0xcf,0x97,0x91,0x61,0xce,0x93,0xd1,0xcc,0x30,0x6e,0x28,0x70,0xe3,0x0c,0xd3,0x91,0xe8,0x9a,0x32,0x81,0xca,0xa8};
    static std::uint8_t c24[32] = {0x17,0xac,0x17,0x9f,0xe7,0xce,0xde,0x93,0x09,0x04,0x6e,0xc6,0xb4,0x25,0x6b,0xbb,0x75,0x64,0x91,0x4a,0x79,0x52,0xa9,0x26,0x7a,0xb5,0xb9,0xce,0x97,0x85,0x5f,0xf8};
    sm9_fp_from_bytes(a, a24);
    sm9_fp_tpl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c24, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_tpl");
    }
    static std::uint8_t a25[32] = {0x70,0xfc,0x88,0x4e,0x19,0xf1,0x2f,0xa6,0x0b,0x74,0x52,0xe6,0xff,0xa1,0xb1,0xfc,0xec,0x48,0xec,0xcf,0x22,0xd8,0xc7,0x8f,0x33,0xfd,0x22,0xae,0xda,0xc7,0x24,0x62};
    static std::uint8_t c25[32] = {0x9c,0xb5,0x98,0xea,0x4b,0x2f,0xe8,0x00,0x4c,0x59,0x4d,0x65,0x09,0x56,0x4e,0xb1,0xa2,0xe8,0x33,0x22,0x4e,0x0f,0x67,0xd1,0xb6,0x87,0xcc,0xe4,0xad,0x04,0x27,0xa9};
    sm9_fp_from_bytes(a, a25);
    sm9_fp_tpl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c25, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_tpl");
    }
    static std::uint8_t a26[32] = {0x8c,0x09,0x55,0xdd,0xc8,0xd5,0x38,0x89,0x9c,0x97,0x8c,0x5c,0xc1,0x90,0x94,0x21,0xac,0x53,0xc4,0x4c,0x46,0xa8,0x9e,0xbf,0x40,0x2f,0x97,0x7b,0x27,0x15,0xc4,0x85};
    static std::uint8_t c26[32] = {0x37,0x9c,0x01,0x99,0x55,0x38,0x5b,0xb9,0x29,0xbf,0x4e,0x76,0x59,0x94,0x2d,0xda,0xc1,0x16,0x26,0x4e,0x9f,0x03,0xfe,0x85,0xf5,0xaf,0x90,0x21,0xae,0x9e,0xc2,0x95};
    sm9_fp_from_bytes(a, a26);
    sm9_fp_tpl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c26, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_tpl");
    }
    static std::uint8_t a27[32] = {0x65,0xe5,0x68,0x1b,0x9f,0x83,0x76,0x03,0x40,0xde,0xef,0x0b,0x94,0x48,0x17,0x3b,0x7d,0x02,0x0b,0xb9,0xdc,0x31,0x5f,0x21,0xaa,0x1b,0x0d,0x66,0xa4,0x41,0xbd,0x57};
    static std::uint8_t c27[32] = {0x7b,0x70,0x38,0x52,0xdb,0xe6,0xbb,0x17,0xec,0x99,0x21,0xd2,0xc7,0x49,0x7e,0x6d,0x55,0x13,0x8f,0xe2,0x7a,0x19,0x2e,0x89,0x18,0xe1,0x8d,0x0c,0x09,0x73,0xf2,0x88};
    sm9_fp_from_bytes(a, a27);
    sm9_fp_tpl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c27, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_tpl");
    }
    static std::uint8_t a28[32] = {0x82,0xd9,0x50,0x4e,0xd1,0x26,0xb4,0xf0,0x11,0xee,0xdd,0x59,0xc4,0x3b,0x16,0xe9,0x19,0xed,0x2f,0x22,0x3a,0x3e,0x74,0xbc,0xc1,0x38,0x7e,0x7f,0x42,0x3c,0x44,0x03};
    static std::uint8_t c28[32] = {0x1c,0x0b,0xf0,0xec,0x6e,0x2c,0xd0,0xec,0x89,0xc5,0x41,0x6d,0x61,0x93,0xb6,0x31,0x09,0xe2,0x66,0xd0,0x79,0xc5,0x80,0x7e,0x78,0xca,0x45,0x2e,0x00,0x12,0x41,0x0f};
    sm9_fp_from_bytes(a, a28);
    sm9_fp_tpl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c28, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_tpl");
    }
    static std::uint8_t a29[32] = {0x13,0xd6,0xa7,0xfc,0x92,0x0f,0x58,0xbc,0x71,0x2c,0xe9,0x05,0xc0,0x21,0x38,0x31,0x90,0x1b,0xa3,0x4c,0xcf,0x0a,0x71,0x84,0x87,0xaf,0x96,0x76,0x1d,0x7f,0x0b,0x83};
    static std::uint8_t c29[32] = {0x3b,0x83,0xf7,0xf5,0xb6,0x2e,0x0a,0x35,0x53,0x86,0xbb,0x11,0x40,0x63,0xa8,0x94,0xb0,0x52,0xe9,0xe6,0x6d,0x1f,0x54,0x8d,0x97,0x0e,0xc3,0x62,0x58,0x7d,0x22,0x89};
    sm9_fp_from_bytes(a, a29);
    sm9_fp_tpl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c29, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_tpl");
    }
    static std::uint8_t a30[32] = {0x1a,0x3b,0x68,0x0f,0x01,0x6e,0x4f,0xe0,0x0f,0x76,0xbe,0xb1,0xb1,0xcc,0xf1,0x8a,0xed,0x69,0x16,0x3c,0xb6,0xc4,0x53,0xa4,0x3e,0x94,0x18,0x20,0xc9,0x43,0xf4,0x51};
    static std::uint8_t c30[32] = {0x4e,0xb2,0x38,0x2d,0x04,0x4a,0xef,0xa0,0x2e,0x64,0x3c,0x15,0x15,0x66,0xd4,0xa0,0xc8,0x3b,0x42,0xb6,0x24,0x4c,0xfa,0xec,0xbb,0xbc,0x48,0x62,0x5b,0xcb,0xdc,0xf3};
    sm9_fp_from_bytes(a, a30);
    sm9_fp_tpl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c30, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_tpl");
    }
    static std::uint8_t a31[32] = {0x5f,0x07,0xc7,0xa4,0x8b,0x9b,0x19,0x55,0x88,0x1e,0xe9,0x75,0x9b,0xa8,0xea,0x59,0x62,0x51,0x9f,0xea,0xc3,0x6c,0x19,0x0f,0x3d,0x14,0x40,0x24,0x31,0x2c,0x5a,0x7d};
    static std::uint8_t c31[32] = {0x66,0xd7,0x56,0xed,0xa0,0x2d,0xa5,0x0e,0xc2,0x59,0x11,0x10,0xdd,0x6b,0xf7,0xc7,0x05,0x02,0x4c,0x75,0x2f,0xc9,0x5c,0x51,0xd1,0xcd,0x25,0x44,0xb0,0x33,0xc9,0xfa};
    sm9_fp_from_bytes(a, a31);
    sm9_fp_tpl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c31, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_tpl");
    }
    static std::uint8_t a32[32] = {0xb3,0x5f,0x57,0x9e,0x44,0x75,0x74,0xc7,0x59,0xeb,0x95,0xc2,0x38,0x47,0x71,0xed,0x11,0x2a,0x22,0x55,0xca,0xed,0x35,0xa0,0xdf,0xe7,0xbc,0x5f,0x3b,0x69,0xf2,0xb8};
    static std::uint8_t c32[32] = {0xad,0x9e,0x06,0xda,0xc8,0x19,0x10,0x72,0x61,0xbb,0x6a,0xa6,0xbd,0xb8,0xc7,0x3c,0xef,0x99,0x40,0x6b,0x2b,0xd1,0xc3,0x2a,0xd4,0xd7,0xfe,0xcd,0xeb,0x9b,0x4d,0x2e};
    sm9_fp_from_bytes(a, a32);
    sm9_fp_tpl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c32, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_tpl");
    }
    static std::uint8_t a33[32] = {0x1d,0xad,0x83,0x5e,0x95,0x99,0x4c,0x2e,0x99,0x75,0x6b,0x59,0x3b,0xfa,0x40,0x86,0x11,0xcd,0x70,0xde,0xe8,0x3b,0xd4,0x50,0x8a,0x41,0xbc,0xfa,0x86,0x86,0x2c,0x9e};
    static std::uint8_t c33[32] = {0x59,0x08,0x8a,0x1b,0xc0,0xcb,0xe4,0x8b,0xcc,0x60,0x42,0x0b,0xb3,0xee,0xc1,0x92,0x35,0x68,0x52,0x9c,0xb8,0xb3,0x7c,0xf1,0x9e,0xc5,0x36,0xef,0x93,0x92,0x85,0xda};
    sm9_fp_from_bytes(a, a33);
    sm9_fp_tpl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c33, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_tpl");
    }
    static std::uint8_t a34[32] = {0x5b,0x7a,0x3d,0x32,0x1c,0xde,0xd8,0xf9,0x1e,0x2f,0xf8,0x76,0x21,0x50,0xb8,0x58,0x0a,0xaa,0xd5,0x0b,0x53,0x09,0xd5,0x50,0xf7,0xce,0x7b,0xb4,0xc7,0xfb,0x25,0xf6};
    static std::uint8_t c34[32] = {0x5c,0x2e,0xb7,0x96,0x53,0xf8,0xe3,0xf9,0x84,0x8c,0x3e,0x12,0x6e,0x63,0x61,0xc2,0xfe,0x0d,0xeb,0xd6,0xde,0xa2,0x91,0x17,0x01,0xfb,0xd7,0xf6,0x74,0xa0,0x2c,0x65};
    sm9_fp_from_bytes(a, a34);
    sm9_fp_tpl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c34, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_tpl");
    }
    static std::uint8_t a35[32] = {0x5d,0x58,0xcf,0x13,0x8f,0x24,0x7d,0xd4,0x26,0x14,0x87,0x10,0x39,0x2c,0x1b,0x0d,0xff,0x0f,0x4f,0x79,0xea,0xde,0x8d,0xff,0xb8,0xfa,0xac,0x7e,0x76,0x2d,0xf5,0x32};
    static std::uint8_t c35[32] = {0x61,0xca,0x6d,0x3a,0xaa,0xc9,0xd2,0x8a,0x9c,0x39,0xe9,0xe0,0xb5,0xf5,0x89,0xe4,0xdb,0x3b,0x5b,0x22,0xa6,0x20,0xbb,0x23,0x45,0x80,0x6a,0x53,0x7f,0x38,0x9a,0x19};
    sm9_fp_from_bytes(a, a35);
    sm9_fp_tpl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c35, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_tpl");
    }
    static std::uint8_t a36[32] = {0x43,0x66,0x6f,0xc1,0x73,0xf2,0x75,0xe9,0x17,0x98,0x5d,0x85,0x7a,0x26,0xb3,0x49,0xcf,0x3a,0xed,0xef,0xfa,0xba,0xad,0x28,0xb1,0x68,0xc8,0xbc,0xb6,0x0f,0xde,0x0a};
    static std::uint8_t c36[32] = {0x13,0xf3,0x4f,0x44,0x59,0x33,0xba,0xc9,0x70,0xc5,0x6d,0x40,0x78,0xe5,0x52,0x98,0x4b,0xbe,0x36,0x84,0xd5,0xb5,0x18,0x9e,0x2e,0xca,0xbf,0x0e,0x3e,0xde,0x54,0xa1};
    sm9_fp_from_bytes(a, a36);
    sm9_fp_tpl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c36, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_tpl");
    }
    static std::uint8_t a37[32] = {0x1d,0xb3,0xad,0xbe,0x46,0x04,0xa5,0x41,0x64,0x2a,0x36,0x01,0x5e,0x13,0x5e,0x30,0x6f,0xe5,0x3d,0xac,0xcb,0x6e,0x79,0x79,0xd2,0x95,0x5b,0x10,0x93,0x9f,0x0c,0xb7};
    static std::uint8_t c37[32] = {0x59,0x1b,0x09,0x3a,0xd2,0x0d,0xef,0xc4,0x2c,0x7e,0xa2,0x04,0x1a,0x3a,0x1a,0x91,0x4f,0xaf,0xb9,0x06,0x62,0x4b,0x6c,0x6d,0x77,0xc0,0x11,0x31,0xba,0xdd,0x26,0x25};
    sm9_fp_from_bytes(a, a37);
    sm9_fp_tpl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c37, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_tpl");
    }
    static std::uint8_t a38[32] = {0xa8,0xf2,0x88,0x76,0x0a,0x52,0x25,0x54,0x67,0x4a,0x5b,0xb2,0xba,0x7e,0x83,0x5e,0x46,0x91,0xb2,0x28,0x65,0x07,0x46,0x55,0xbc,0x7f,0x12,0x42,0xaf,0x2c,0x09,0x44};
    static std::uint8_t c38[32] = {0x8e,0x57,0x99,0x62,0x19,0xaf,0x22,0x19,0x89,0xd7,0xbc,0x78,0x44,0x5d,0xfb,0x90,0x8f,0xcf,0xef,0xe2,0xfa,0x1f,0xf5,0x49,0x6a,0x9e,0x00,0x78,0x46,0xe1,0x90,0xd2};
    sm9_fp_from_bytes(a, a38);
    sm9_fp_tpl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c38, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_tpl");
    }
    static std::uint8_t a39[32] = {0x56,0x10,0x23,0x62,0xda,0x48,0xd3,0xe3,0x14,0x34,0x0d,0x51,0xcf,0x86,0x14,0x40,0xeb,0x8f,0x64,0x5a,0xea,0xa7,0xb8,0xe9,0xc1,0x7a,0x48,0xf9,0x1d,0xe5,0xc0,0x8d};
    static std::uint8_t c39[32] = {0x4b,0xf0,0x6a,0x28,0x8c,0x36,0xd4,0xb7,0x66,0x98,0x7c,0xa5,0x79,0x03,0x75,0x7d,0xa0,0xbb,0x99,0xc5,0xa5,0x7c,0x3b,0xe1,0x5e,0xff,0x3f,0xc3,0x76,0x5f,0xfc,0x2a};
    sm9_fp_from_bytes(a, a39);
    sm9_fp_tpl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c39, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_tpl");
    }
    static std::uint8_t a40[32] = {0x24,0x6f,0x97,0x90,0x37,0x37,0x1a,0x5f,0x1a,0x47,0xf7,0xbb,0xe2,0x36,0x52,0xa8,0x00,0xa8,0xcf,0xc7,0x1a,0xb6,0x59,0xba,0xf6,0x4b,0x71,0x89,0x5d,0xf4,0x65,0xbc};
    static std::uint8_t c40[32] = {0x6d,0x4e,0xc6,0xb0,0xa5,0xa5,0x4f,0x1d,0x4e,0xd7,0xe7,0x33,0xa6,0xa2,0xf7,0xf8,0x01,0xfa,0x6f,0x55,0x50,0x23,0x0d,0x30,0xe2,0xe2,0x54,0x9c,0x19,0xdd,0x31,0x34};
    sm9_fp_from_bytes(a, a40);
    sm9_fp_tpl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c40, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_tpl");
    }
    static std::uint8_t a41[32] = {0x4f,0x69,0x6f,0x3f,0x08,0xcc,0x08,0x4e,0x36,0xda,0x2b,0x21,0x0c,0x1a,0x24,0x00,0xff,0x20,0x64,0x96,0xa8,0x5b,0x46,0x8c,0x75,0x85,0xbd,0xe2,0x0b,0x57,0x2c,0xf4};
    static std::uint8_t c41[32] = {0x37,0xfc,0x4d,0xbd,0x17,0xc0,0x71,0xf8,0xce,0x8a,0xd6,0x13,0x2e,0xbf,0xa4,0xbd,0xdb,0x6e,0x9a,0x78,0xde,0x96,0xe4,0xc9,0x7b,0x21,0x9e,0x7e,0x3e,0xb4,0x41,0x5f};
    sm9_fp_from_bytes(a, a41);
    sm9_fp_tpl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c41, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_tpl");
    }
    static std::uint8_t a42[32] = {0x07,0x4d,0x06,0x40,0xb8,0xa0,0xf8,0xbc,0xef,0xf5,0x60,0x52,0x0d,0xb2,0x5d,0x86,0xfe,0xb8,0xd6,0x64,0xb7,0x9b,0x17,0x64,0x88,0x89,0xf7,0x7c,0xae,0x6e,0x49,0x80};
    static std::uint8_t c42[32] = {0x15,0xe7,0x12,0xc2,0x29,0xe2,0xea,0x36,0xcf,0xe0,0x20,0xf6,0x29,0x17,0x18,0x94,0xfc,0x2a,0x83,0x2e,0x26,0xd1,0x46,0x2d,0x99,0x9d,0xe6,0x76,0x0b,0x4a,0xdc,0x80};
    sm9_fp_from_bytes(a, a42);
    sm9_fp_tpl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c42, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_tpl");
    }
    static std::uint8_t a43[32] = {0x33,0xce,0xcc,0x26,0xd1,0x97,0x08,0xe7,0x05,0x5f,0x79,0x82,0x21,0x6e,0x9d,0x2c,0x5a,0x0b,0x99,0x0b,0x5c,0x58,0x7f,0xc8,0xe0,0x5d,0xdf,0x5a,0x12,0x0c,0x8e,0x5b};
    static std::uint8_t c43[32] = {0x9b,0x6c,0x64,0x74,0x74,0xc5,0x1a,0xb5,0x10,0x1e,0x6c,0x86,0x64,0x4b,0xd7,0x85,0x0e,0x22,0xcb,0x22,0x15,0x09,0x7f,0x5a,0xa1,0x19,0x9e,0x0e,0x36,0x25,0xab,0x11};
    sm9_fp_from_bytes(a, a43);
    sm9_fp_tpl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c43, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_tpl");
    }
    static std::uint8_t a44[32] = {0x80,0xff,0x21,0xf7,0xa6,0x51,0xd0,0x3a,0x23,0x81,0x02,0x05,0xce,0x11,0xad,0xd5,0xc1,0x48,0x42,0x0b,0x62,0x59,0x01,0x69,0xb2,0x31,0xf1,0x2c,0xb5,0x6b,0xed,0xf6};
    static std::uint8_t c44[32] = {0x16,0x7d,0x65,0xe6,0xed,0xae,0x22,0xca,0xbe,0x7b,0xaf,0x71,0x7f,0x17,0x7a,0xf6,0xff,0xf3,0x9f,0x8b,0xf2,0x15,0x26,0x85,0x4b,0xb6,0x9d,0x36,0x59,0xa1,0x3e,0xe8};
    sm9_fp_from_bytes(a, a44);
    sm9_fp_tpl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c44, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_tpl");
    }
    static std::uint8_t a45[32] = {0x7a,0xe8,0xf9,0xcd,0x6f,0x65,0xba,0xd8,0xc8,0x00,0x62,0xf3,0x8e,0x1a,0x49,0xb6,0xaf,0x48,0xcc,0x8c,0x5f,0x89,0x38,0xd1,0x5b,0x37,0x7f,0x60,0x0f,0xad,0xc7,0x1f};
    static std::uint8_t c45[32] = {0x04,0x3a,0xed,0x68,0x48,0xe9,0xe2,0xa6,0xab,0xf9,0xd2,0x3a,0xbf,0x31,0x4e,0x99,0xc9,0xf5,0x3f,0x0e,0xe9,0xa5,0xcc,0xbc,0x46,0xc7,0x47,0xd0,0x68,0x66,0xca,0x63};
    sm9_fp_from_bytes(a, a45);
    sm9_fp_tpl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c45, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_tpl");
    }
    static std::uint8_t a46[32] = {0xa4,0x3b,0x7a,0x99,0x10,0x29,0xf8,0xea,0x82,0x42,0x06,0x80,0x68,0x05,0x27,0x05,0xa5,0xb2,0x64,0xd4,0x3d,0x8e,0x17,0x85,0x5e,0x7c,0xd1,0xc6,0x92,0x6d,0x97,0x74};
    static std::uint8_t c46[32] = {0x80,0x32,0x6f,0xcb,0x2b,0x36,0x9c,0xdb,0xda,0xbe,0xbc,0xe1,0x4c,0xf1,0xe6,0x86,0xad,0x32,0x07,0xe6,0x83,0xb4,0x68,0xd8,0x50,0x97,0x3f,0x03,0xf0,0xa6,0x3b,0x62};
    sm9_fp_from_bytes(a, a46);
    sm9_fp_tpl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c46, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_tpl");
    }
    static std::uint8_t a47[32] = {0xb1,0x3c,0x5d,0x10,0xde,0x33,0xcf,0x97,0x3e,0xaf,0x08,0x65,0x58,0x3f,0xaa,0x38,0xa6,0xce,0x80,0xda,0xf2,0xf3,0x3a,0xfd,0x3b,0x42,0x94,0x62,0xa7,0x4c,0xfd,0x90};
    static std::uint8_t c47[32] = {0xa7,0x35,0x17,0x32,0x95,0x54,0x20,0xe2,0x10,0x05,0xc2,0x90,0x1d,0xa1,0x70,0x1f,0xb0,0x86,0x5b,0xfa,0xa3,0xe3,0xd3,0x3f,0xe6,0xe8,0x86,0xd8,0x2f,0x44,0x6d,0xb6};
    sm9_fp_from_bytes(a, a47);
    sm9_fp_tpl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c47, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_tpl");
    }
    static std::uint8_t a48[32] = {0x9f,0x62,0x62,0x9d,0x5c,0xf1,0xa2,0xde,0x49,0x8a,0x67,0x2e,0xe3,0x50,0x90,0x7c,0x58,0xe5,0xdb,0x23,0x9f,0xfc,0xe6,0x35,0x16,0x0a,0x05,0xce,0x87,0x61,0xb6,0x79};
    static std::uint8_t c48[32] = {0x71,0xa7,0x27,0xd8,0x11,0x8d,0x9a,0xb7,0x30,0x97,0xde,0xec,0xbe,0xd4,0x22,0xea,0xc6,0xcc,0x6a,0xd4,0xab,0x00,0xd4,0xe7,0x77,0x3e,0xdb,0x1b,0xcf,0x82,0x98,0x71};
    sm9_fp_from_bytes(a, a48);
    sm9_fp_tpl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c48, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_tpl");
    }
    static std::uint8_t a49[32] = {0x7c,0x2c,0x14,0x9d,0x38,0x5f,0x5d,0xea,0x6a,0x37,0x41,0x2d,0x00,0x9e,0x66,0x78,0xd4,0xa6,0x8b,0xd1,0x7d,0x30,0xd2,0x78,0xf6,0x91,0x2d,0x28,0x4c,0xaa,0xa7,0x5a};
    static std::uint8_t c49[32] = {0x08,0x04,0x3d,0xd7,0xa3,0xd6,0xcb,0xdb,0x92,0x9e,0x6c,0xe7,0x16,0xbd,0xa4,0xe0,0x3a,0x0e,0x7c,0xde,0x42,0x9c,0x99,0xb3,0x18,0xd4,0x51,0x29,0x1f,0x5d,0x6b,0x14};
    sm9_fp_from_bytes(a, a49);
    sm9_fp_tpl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c49, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_tpl");
    }
    static std::uint8_t a50[32] = {0x2a,0x5b,0xe4,0x85,0x1f,0xd0,0x5a,0xc3,0xd9,0x15,0xb7,0x0f,0x6a,0x70,0x69,0x54,0x38,0x7c,0xec,0x44,0x94,0x39,0xc4,0x58,0xa7,0x70,0xeb,0xc8,0xc8,0xbc,0xb7,0xda};
    static std::uint8_t c50[32] = {0x7f,0x13,0xad,0x8f,0x5f,0x71,0x10,0x4b,0x8b,0x41,0x25,0x2e,0x3f,0x51,0x3b,0xfc,0xa9,0x76,0xc4,0xcd,0xbc,0xad,0x4d,0x09,0xf6,0x52,0xc3,0x5a,0x5a,0x36,0x27,0x8e};
    sm9_fp_from_bytes(a, a50);
    sm9_fp_tpl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c50, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_tpl");
    }
    static std::uint8_t a51[32] = {0x52,0x03,0xbb,0xc0,0x46,0x31,0xc7,0x30,0x38,0x86,0x9d,0xc3,0x9d,0x3e,0x45,0xcc,0x15,0x6c,0x3f,0x61,0x4f,0x8c,0xfd,0x04,0x42,0x70,0x15,0xd9,0xc6,0x5f,0xa7,0xd6};
    static std::uint8_t c51[32] = {0x3f,0xcb,0x33,0x40,0xcf,0xf1,0xae,0x9e,0xd3,0x90,0x2d,0xfa,0xe2,0x2c,0x0a,0x1f,0x1e,0x52,0x2a,0xd8,0xd4,0x2c,0x08,0x30,0xe1,0xe0,0xa6,0x65,0x6f,0xcd,0xb2,0x05};
    sm9_fp_from_bytes(a, a51);
    sm9_fp_tpl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c51, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_tpl");
    }
    static std::uint8_t a52[32] = {0x53,0xc5,0x91,0xcd,0x6d,0xf1,0xe9,0x85,0xd4,0xc1,0x01,0x75,0xab,0x6e,0xdd,0x79,0xdc,0xec,0x27,0xe0,0x3a,0x15,0xcb,0xe8,0xac,0x03,0x77,0x69,0xdc,0xbc,0x9f,0xab};
    static std::uint8_t c52[32] = {0x45,0x10,0xb5,0x68,0x47,0x32,0x15,0x9f,0xa8,0x3f,0x59,0x11,0x0c,0xbd,0xd1,0x28,0x74,0xd1,0xe4,0x55,0x93,0xc6,0x74,0xde,0x1e,0x9a,0xcb,0x15,0xb2,0xe4,0x99,0x84};
    sm9_fp_from_bytes(a, a52);
    sm9_fp_tpl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c52, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_tpl");
    }
    static std::uint8_t a53[32] = {0x62,0x3c,0x06,0xb2,0x41,0x70,0x61,0x62,0xd6,0xf8,0x55,0x0d,0xa3,0xee,0x17,0x10,0x4f,0xc4,0x9f,0xf1,0x7f,0xeb,0xf7,0xa4,0xe7,0x3c,0x75,0x7d,0x72,0x27,0x61,0x28};
    static std::uint8_t c53[32] = {0x70,0x74,0x14,0x16,0xc1,0xad,0x7d,0x36,0xae,0xe5,0x53,0xd8,0xf6,0x3b,0x7d,0xeb,0xcd,0x5b,0x4c,0x89,0x65,0x48,0xf8,0x12,0xd0,0x45,0xc5,0x50,0x73,0x24,0xdd,0xfb};
    sm9_fp_from_bytes(a, a53);
    sm9_fp_tpl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c53, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_tpl");
    }
    static std::uint8_t a54[32] = {0x13,0x9f,0x9f,0x7d,0x83,0x87,0x94,0xa1,0x7e,0x5f,0x07,0x6e,0xd6,0x86,0x99,0x52,0x16,0x6b,0x70,0xf8,0x45,0x97,0x8b,0x18,0x4c,0x1d,0xa0,0x46,0xf5,0x06,0x41,0x44};
    static std::uint8_t c54[32] = {0x3a,0xde,0xde,0x78,0x8a,0x96,0xbd,0xe4,0x7b,0x1d,0x16,0x4c,0x83,0x93,0xcb,0xf6,0x43,0x42,0x52,0xe8,0xd0,0xc6,0xa1,0x48,0xe4,0x58,0xe0,0xd4,0xdf,0x12,0xc3,0xcc};
    sm9_fp_from_bytes(a, a54);
    sm9_fp_tpl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c54, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_tpl");
    }
    static std::uint8_t a55[32] = {0x6c,0x1e,0xf7,0x9f,0x38,0xfe,0xac,0x18,0x8a,0x33,0x82,0x54,0x61,0xde,0xcf,0x26,0xde,0x9d,0x93,0x95,0xc4,0x83,0x84,0xca,0xd1,0x4c,0x0a,0xe0,0x0b,0x57,0x05,0x6d};
    static std::uint8_t c55[32] = {0x8e,0x1c,0xe6,0xdd,0xa8,0x58,0x5d,0x57,0xc8,0x96,0xdb,0xad,0x30,0x0d,0xa6,0x2f,0x79,0xe6,0x27,0x76,0x33,0x0f,0x9f,0x84,0x8e,0x74,0x85,0x78,0x3e,0xb3,0xca,0xca};
    sm9_fp_from_bytes(a, a55);
    sm9_fp_tpl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c55, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_tpl");
    }
    static std::uint8_t a56[32] = {0xb1,0x0e,0x83,0x08,0xc3,0xd5,0x9d,0xfb,0xb2,0xfc,0x14,0x45,0xcb,0xe8,0x93,0x9a,0x06,0xf1,0xa7,0x9b,0xc4,0x34,0x35,0x49,0x4f,0x6c,0x8f,0x5f,0x63,0xf0,0x66,0xf3};
    static std::uint8_t c56[32] = {0xa6,0xab,0x89,0x1a,0x46,0x39,0x8c,0x0f,0x6c,0xec,0xe6,0x31,0x78,0x9c,0x2c,0x43,0xd0,0xef,0xd0,0x3d,0x17,0xa6,0xc2,0x24,0x23,0x66,0x77,0xce,0x65,0x2e,0xa9,0xdf};
    sm9_fp_from_bytes(a, a56);
    sm9_fp_tpl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c56, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_tpl");
    }
    static std::uint8_t a57[32] = {0x7c,0x5e,0xcb,0x99,0x44,0x19,0xde,0xd8,0xf4,0x47,0x69,0xe9,0x15,0xb2,0x71,0xb5,0xac,0x20,0x33,0x75,0xa0,0xea,0xc2,0x2d,0x8a,0xf2,0x64,0xcb,0x39,0x36,0x30,0x53};
    static std::uint8_t c57[32] = {0x08,0x9c,0x62,0xcb,0xc7,0x06,0x4e,0xa7,0x30,0xce,0xe7,0x1b,0x55,0xf9,0xc6,0x96,0xc0,0x7b,0x73,0xca,0xad,0xca,0x68,0xd0,0xd5,0xf7,0xf8,0x11,0xe5,0x00,0x05,0xff};
    sm9_fp_from_bytes(a, a57);
    sm9_fp_tpl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c57, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_tpl");
    }
    static std::uint8_t a58[32] = {0x29,0x61,0x16,0x63,0x63,0x06,0x5d,0x16,0xd3,0xfa,0xf6,0xd3,0x1c,0x6a,0xb1,0xa1,0x49,0x1a,0x02,0x71,0xd1,0x3e,0x23,0xcc,0xda,0xf5,0x35,0x2a,0xb6,0xa4,0x11,0xb4};
    static std::uint8_t c58[32] = {0x7c,0x23,0x43,0x2a,0x29,0x13,0x17,0x44,0x7b,0xf0,0xe4,0x79,0x55,0x40,0x14,0xe3,0xdb,0x4e,0x07,0x55,0x73,0xba,0x6b,0x66,0x90,0xdf,0x9f,0x80,0x23,0xec,0x35,0x1c};
    sm9_fp_from_bytes(a, a58);
    sm9_fp_tpl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c58, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_tpl");
    }
    static std::uint8_t a59[32] = {0x1f,0x47,0xc7,0xb3,0x5f,0xa8,0x2c,0x87,0xc2,0x1f,0x41,0x47,0x72,0x09,0x9a,0x37,0x4a,0xa8,0xf1,0x9d,0x0d,0x3e,0x30,0x24,0x64,0x38,0x27,0xab,0x25,0x20,0xf8,0x45};
    static std::uint8_t c59[32] = {0x5d,0xd7,0x57,0x1a,0x1e,0xf8,0x85,0x97,0x46,0x5d,0xc3,0xd6,0x56,0x1c,0xce,0xa5,0xdf,0xfa,0xd4,0xd7,0x27,0xba,0x90,0x6d,0x2c,0xa8,0x77,0x01,0x6f,0x62,0xe8,0xcf};
    sm9_fp_from_bytes(a, a59);
    sm9_fp_tpl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c59, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_tpl");
    }
    static std::uint8_t a60[32] = {0x9d,0x05,0xa5,0xef,0x14,0x98,0xcb,0xf9,0x86,0x63,0x3f,0xdd,0xbf,0x36,0x4c,0xe5,0xe2,0xaf,0xba,0xf2,0x1f,0xf3,0x1c,0x34,0xb2,0xed,0x53,0x16,0x8a,0xdd,0x3a,0x5b};
    static std::uint8_t c60[32] = {0x6a,0x90,0xf1,0xcd,0x38,0x83,0x16,0x08,0xe7,0x22,0x68,0xf9,0x52,0x85,0x58,0x27,0x64,0x2a,0x0a,0x40,0x2a,0xe3,0x76,0xe6,0x4d,0xe8,0xc2,0xf3,0xd9,0xf5,0x24,0x17};
    sm9_fp_from_bytes(a, a60);
    sm9_fp_tpl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c60, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_tpl");
    }
    static std::uint8_t a61[32] = {0x42,0xe7,0x07,0xfd,0xd6,0xf8,0x86,0x1a,0xec,0x01,0x94,0x90,0x0c,0xb4,0xba,0x73,0xd3,0x12,0x6a,0x95,0x3a,0xc5,0x2c,0x5d,0xa1,0xa1,0xc1,0x41,0x6f,0xa5,0xd9,0x0e};
    static std::uint8_t c61[32] = {0x12,0x75,0x17,0xf9,0x82,0x45,0xeb,0x5e,0xee,0x01,0x12,0x60,0x30,0x8f,0x68,0x16,0x57,0x44,0xac,0x74,0x95,0xd4,0x96,0x3c,0xff,0x75,0xa8,0x9c,0x6b,0xa0,0x45,0xad};
    sm9_fp_from_bytes(a, a61);
    sm9_fp_tpl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c61, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_tpl");
    }
    static std::uint8_t a62[32] = {0x01,0xc5,0x8f,0xcb,0xe3,0x51,0xcf,0x04,0xdf,0x9f,0x03,0x11,0x7e,0xc7,0x5b,0x21,0x74,0x57,0x2a,0x3d,0xbf,0x99,0x7e,0xb6,0xb3,0x6c,0x01,0x75,0x51,0xa5,0xb3,0xeb};
    static std::uint8_t c62[32] = {0x05,0x50,0xaf,0x63,0xa9,0xf5,0x6d,0x0e,0x9e,0xdd,0x09,0x34,0x7c,0x56,0x11,0x64,0x5d,0x05,0x7e,0xb9,0x3e,0xcc,0x7c,0x24,0x1a,0x44,0x04,0x5f,0xf4,0xf1,0x1b,0xc1};
    sm9_fp_from_bytes(a, a62);
    sm9_fp_tpl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c62, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_tpl");
    }
    static std::uint8_t a63[32] = {0x5e,0xbd,0xa3,0x86,0xe8,0x5f,0xcb,0xa6,0x6e,0xa2,0xf8,0xca,0xf3,0x90,0x74,0x04,0xd9,0xb9,0x43,0x2e,0x3c,0xc0,0xb1,0x0c,0x5e,0x1c,0xae,0x15,0x4a,0x87,0x01,0x10};
    static std::uint8_t c63[32] = {0x65,0xf8,0xea,0x94,0xb6,0x7b,0xbc,0x01,0x75,0xe5,0x3f,0x10,0xe5,0x22,0x94,0xc9,0x6b,0x39,0x36,0x3f,0x9b,0xc7,0x24,0x49,0x34,0xe6,0x6f,0x17,0xfc,0x43,0xbd,0xb3};
    sm9_fp_from_bytes(a, a63);
    sm9_fp_tpl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c63, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_tpl");
    }
    static std::uint8_t a64[32] = {0x37,0xfb,0x74,0x31,0x02,0xaa,0xc2,0xf8,0x0c,0x1a,0x8d,0x7a,0x36,0x67,0xcf,0x5c,0x52,0x9c,0x1b,0x29,0x75,0xb3,0x20,0x89,0xaf,0x21,0xa0,0x09,0xc0,0xe2,0x78,0x9b};
    static std::uint8_t c64[32] = {0xa7,0xf2,0x5c,0x93,0x08,0x00,0x48,0xe8,0x24,0x4f,0xa8,0x6e,0xa3,0x37,0x6e,0x14,0xf7,0xd4,0x51,0x7c,0x61,0x19,0x61,0x9d,0x0d,0x64,0xe0,0x1d,0x42,0xa7,0x69,0xd1};
    sm9_fp_from_bytes(a, a64);
    sm9_fp_tpl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c64, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_tpl");
    }
    static std::uint8_t a65[32] = {0x2e,0x40,0x9d,0x0a,0x1a,0x8b,0x5f,0xdb,0x1d,0x16,0x52,0x40,0x73,0x90,0xb0,0x9a,0xb0,0x05,0x5d,0xea,0x78,0xf8,0xc2,0x2d,0x5b,0x10,0x52,0x3f,0x9c,0xf1,0xd7,0x8c};
    static std::uint8_t c65[32] = {0x8a,0xc1,0xd7,0x1e,0x4f,0xa2,0x1f,0x91,0x57,0x42,0xf6,0xc1,0x5a,0xb2,0x11,0xd0,0x10,0x10,0x19,0xbf,0x6a,0xea,0x46,0x88,0x11,0x30,0xf6,0xbe,0xd6,0xd5,0x86,0xa4};
    sm9_fp_from_bytes(a, a65);
    sm9_fp_tpl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c65, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_tpl");
    }
    static std::uint8_t a66[32] = {0x9b,0x5d,0xd2,0x92,0x57,0x2a,0x5d,0x39,0x1a,0x2b,0xbc,0xe9,0x05,0x5b,0x04,0x89,0xc5,0x99,0x02,0x28,0xab,0x41,0xc5,0x3b,0xa2,0xdb,0x17,0x40,0x66,0x20,0x35,0xbf};
    static std::uint8_t c66[32] = {0x65,0x99,0x77,0xb7,0x00,0x37,0xc9,0xc7,0xa2,0x7b,0xe0,0x1b,0x24,0xf3,0x7f,0x13,0x0c,0xe5,0xdf,0xe3,0xcc,0xcf,0x71,0xfb,0x1d,0xb2,0x0f,0x71,0x6b,0xbe,0x16,0x43};
    sm9_fp_from_bytes(a, a66);
    sm9_fp_tpl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c66, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_tpl");
    }
    static std::uint8_t a67[32] = {0x0e,0x13,0x39,0x3b,0x67,0x6a,0x16,0xdc,0xa3,0xbe,0xa6,0xff,0x3e,0xdd,0xd9,0x27,0x3f,0xfa,0x16,0x5e,0x8b,0xdf,0x36,0x8d,0x8c,0xe3,0x9f,0xfa,0x68,0xf8,0xdf,0xa0};
    static std::uint8_t c67[32] = {0x2a,0x39,0xab,0xb2,0x36,0x3e,0x44,0x95,0xeb,0x3b,0xf4,0xfd,0xbc,0x99,0x8b,0x75,0xbf,0xee,0x43,0x1b,0xa3,0x9d,0xa3,0xa8,0xa6,0xaa,0xdf,0xef,0x3a,0xea,0x9e,0xe0};
    sm9_fp_from_bytes(a, a67);
    sm9_fp_tpl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c67, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_tpl");
    }
    static std::uint8_t a68[32] = {0x6f,0x08,0xa9,0xc0,0xda,0xc5,0xe2,0x07,0xf7,0xf0,0x73,0xad,0xbb,0x62,0x5a,0x37,0x07,0xb2,0xef,0xc8,0x44,0x8e,0x8a,0x37,0xe5,0x42,0xf1,0xe4,0xa7,0xf2,0xa7,0xa9};
    static std::uint8_t c68[32] = {0x96,0xd9,0xfd,0x42,0x8d,0xad,0xff,0x26,0x11,0xcd,0xaf,0xb9,0x3c,0x98,0x47,0x5f,0xf5,0x26,0x3c,0x0d,0xb3,0x30,0xaf,0xcb,0xca,0x59,0x3a,0x86,0x14,0x86,0xb1,0x7e};
    sm9_fp_from_bytes(a, a68);
    sm9_fp_tpl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c68, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_tpl");
    }
    static std::uint8_t a69[32] = {0x24,0x16,0x57,0x3d,0x7b,0xdf,0x4e,0x31,0xfb,0x9d,0xe7,0xa7,0xe5,0xa1,0x3b,0x41,0xad,0xaa,0x6e,0x23,0x20,0x19,0x84,0x8a,0xd9,0x56,0x52,0x00,0xc3,0x48,0x44,0xce};
    static std::uint8_t c69[32] = {0x6c,0x43,0x05,0xb8,0x73,0x9d,0xea,0x95,0xf2,0xd9,0xb6,0xf7,0xb0,0xe3,0xb1,0xc5,0x08,0xff,0x4a,0x69,0x60,0x4c,0x8d,0xa0,0x8c,0x02,0xf6,0x02,0x49,0xd8,0xce,0x6a};
    sm9_fp_from_bytes(a, a69);
    sm9_fp_tpl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c69, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_tpl");
    }
    static std::uint8_t a70[32] = {0x03,0x0c,0x5c,0x27,0xd4,0x6b,0x7c,0x2e,0x60,0xa8,0x12,0x7f,0x93,0x0f,0xf0,0x8d,0x01,0x5c,0xa9,0x25,0x20,0xfc,0xb2,0x0d,0x68,0xe0,0xb3,0xea,0x95,0xe5,0x44,0xdd};
    static std::uint8_t c70[32] = {0x09,0x25,0x14,0x77,0x7d,0x42,0x74,0x8b,0x21,0xf8,0x37,0x7e,0xb9,0x2f,0xd1,0xa7,0x04,0x15,0xfb,0x6f,0x62,0xf6,0x16,0x28,0x3a,0xa2,0x1b,0xbf,0xc1,0xaf,0xce,0x97};
    sm9_fp_from_bytes(a, a70);
    sm9_fp_tpl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c70, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_tpl");
    }
    static std::uint8_t a71[32] = {0x77,0xb8,0x99,0x3c,0x4c,0x62,0x42,0x7b,0x9c,0x6b,0xae,0xf7,0xc6,0xfe,0xf3,0x7a,0x3b,0x29,0xdf,0x3c,0xa6,0x30,0xbc,0xb7,0x71,0x2c,0x43,0x5b,0xf1,0xfb,0xbf,0x24};
    static std::uint8_t c71[32] = {0xb0,0xe9,0xcb,0xb4,0xe2,0x83,0x20,0x80,0xff,0x3f,0x61,0x97,0x5f,0x6e,0x13,0x29,0x8f,0x8b,0x0a,0x6a,0xd8,0x17,0x47,0x4a,0x6e,0x15,0x2e,0xeb,0xf2,0xa1,0xf7,0xef};
    sm9_fp_from_bytes(a, a71);
    sm9_fp_tpl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c71, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_tpl");
    }
    static std::uint8_t a72[32] = {0x99,0x4c,0x2c,0xe6,0xff,0xff,0x80,0x77,0xeb,0x6e,0xb8,0xfc,0xef,0x1c,0x18,0xf2,0xe9,0x7d,0x89,0x34,0x84,0xc5,0xb3,0x27,0x63,0x90,0x1f,0xb5,0x7b,0xc2,0x00,0x82};
    static std::uint8_t c72[32] = {0x5f,0x64,0x86,0xb4,0xfa,0xb7,0x33,0x84,0x16,0x44,0xd4,0x56,0xe2,0x36,0xbc,0x4e,0x78,0x93,0x75,0x07,0x59,0x5b,0x3b,0xbe,0x5f,0xd1,0x28,0xd0,0xac,0xa3,0x76,0x8c};
    sm9_fp_from_bytes(a, a72);
    sm9_fp_tpl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c72, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_tpl");
    }
    static std::uint8_t a73[32] = {0x86,0x75,0xba,0xb4,0xee,0xb8,0x6e,0xa1,0xdf,0x54,0x9a,0xe2,0x7e,0x57,0xc6,0x20,0xd9,0x1e,0xf7,0xb1,0x5d,0xe9,0xdf,0xae,0xd6,0xe1,0x9d,0x72,0x08,0x72,0xe8,0x8f};
    static std::uint8_t c73[32] = {0x26,0xe1,0x30,0x1e,0xc6,0xe1,0xfe,0x01,0xf1,0xf6,0x7a,0x07,0x8f,0xe9,0xc3,0xd8,0x47,0x77,0xc0,0x7d,0xe4,0xc7,0xc1,0x54,0xb9,0xc5,0xa2,0x06,0x52,0xb6,0x2e,0xb3};
    sm9_fp_from_bytes(a, a73);
    sm9_fp_tpl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c73, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_tpl");
    }
    static std::uint8_t a74[32] = {0x08,0x6d,0xd9,0x1c,0x97,0xad,0xc1,0xdd,0x2c,0x24,0xd2,0x2f,0x0a,0x1e,0x94,0x03,0x6e,0x8b,0xcb,0x92,0xa5,0xd2,0xd4,0x13,0xdd,0x2f,0xac,0xbd,0xf6,0xac,0xe9,0xc3};
    static std::uint8_t c74[32] = {0x19,0x49,0x8b,0x55,0xc7,0x09,0x45,0x97,0x84,0x6e,0x76,0x8d,0x1e,0x5b,0xbc,0x0a,0x4b,0xa3,0x62,0xb7,0xf1,0x78,0x7c,0x3b,0x97,0x8f,0x06,0x39,0xe4,0x06,0xbd,0x49};
    sm9_fp_from_bytes(a, a74);
    sm9_fp_tpl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c74, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_tpl");
    }
    static std::uint8_t a75[32] = {0x38,0xc4,0x44,0x86,0x91,0xc8,0x94,0x2d,0xd5,0xd3,0x48,0x66,0xb0,0x2e,0x66,0x29,0x1a,0xc0,0x6d,0x05,0xb5,0x2d,0xfb,0x9a,0x6d,0xce,0x5b,0x3f,0x4d,0xdc,0x2a,0x7d};
    static std::uint8_t c75[32] = {0xaa,0x4c,0xcd,0x93,0xb5,0x59,0xbc,0x89,0x81,0x79,0xd9,0x34,0x10,0x8b,0x32,0x7b,0x50,0x41,0x47,0x11,0x1f,0x89,0xf2,0xcf,0x49,0x6b,0x11,0xbd,0xe9,0x94,0x7f,0x77};
    sm9_fp_from_bytes(a, a75);
    sm9_fp_tpl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c75, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_tpl");
    }
    static std::uint8_t a76[32] = {0x3d,0x27,0x28,0x2a,0xcf,0x1e,0x5c,0x40,0xac,0xc4,0x61,0xdb,0x35,0xcf,0x95,0x7d,0x74,0x79,0xb7,0x9b,0xbe,0xf5,0xe2,0x48,0x3c,0xf6,0xb4,0x5c,0xa2,0x8e,0xcc,0xb6};
    static std::uint8_t c76[32] = {0x01,0x35,0x78,0x80,0x6a,0xb7,0x6d,0xd0,0x30,0x49,0x7a,0x41,0xab,0xdf,0xf9,0x33,0x3b,0x7a,0x93,0x88,0x22,0x66,0xb7,0xfc,0xd1,0x74,0x81,0xee,0x04,0x5b,0x20,0xa5};
    sm9_fp_from_bytes(a, a76);
    sm9_fp_tpl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c76, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_tpl");
    }
    static std::uint8_t a77[32] = {0x7d,0x6c,0x21,0xb0,0x9b,0xbf,0x9b,0x77,0xb4,0x57,0xa7,0x36,0x38,0x9f,0xf1,0x63,0x78,0xd1,0xbb,0xf0,0xe5,0xb4,0xaa,0x18,0x2a,0x87,0x89,0xc5,0x09,0xf0,0x52,0x78};
    static std::uint8_t c77[32] = {0x0b,0xc4,0x65,0x11,0xcd,0xf7,0x84,0x83,0x70,0xff,0x9f,0x02,0xbe,0xc2,0x45,0xa0,0x26,0x90,0x0d,0x3c,0x7c,0x28,0x20,0x90,0xb4,0xb7,0x66,0xff,0x57,0x2e,0x6c,0x6e};
    sm9_fp_from_bytes(a, a77);
    sm9_fp_tpl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c77, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_tpl");
    }
    static std::uint8_t a78[32] = {0x1a,0xe5,0xdd,0xc2,0x7c,0x59,0xf2,0xf7,0x3b,0xee,0x89,0x07,0x58,0x7b,0x68,0xa7,0x28,0x3f,0xbb,0xa2,0xe2,0x5e,0xfe,0x48,0x28,0xbe,0x10,0xf6,0xf8,0x65,0x99,0xbe};
    static std::uint8_t c78[32] = {0x50,0xb1,0x99,0x47,0x75,0x0d,0xd8,0xe5,0xb3,0xcb,0x9b,0x16,0x09,0x72,0x39,0xf5,0x78,0xbf,0x32,0xe8,0xa7,0x1c,0xfa,0xd8,0x7a,0x3a,0x32,0xe4,0xe9,0x30,0xcd,0x3a};
    sm9_fp_from_bytes(a, a78);
    sm9_fp_tpl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c78, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_tpl");
    }
    static std::uint8_t a79[32] = {0x06,0xdf,0x58,0x4a,0x58,0xe7,0x53,0x93,0x7c,0x56,0x5c,0x6f,0x38,0x1a,0x6b,0x16,0x7f,0x80,0x8e,0xaf,0x8d,0x14,0x15,0xa6,0x5d,0x3c,0x0e,0x85,0x2f,0xff,0xc4,0x96};
    static std::uint8_t c79[32] = {0x14,0x9e,0x08,0xdf,0x0a,0xb5,0xfa,0xba,0x75,0x03,0x15,0x4d,0xa8,0x4f,0x41,0x43,0x7e,0x81,0xac,0x0e,0xa7,0x3c,0x40,0xf3,0x17,0xb4,0x2b,0x8f,0x8f,0xff,0x4d,0xc2};
    sm9_fp_from_bytes(a, a79);
    sm9_fp_tpl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c79, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_tpl");
    }
    static std::uint8_t a80[32] = {0x5c,0xd0,0x2d,0x3d,0x4e,0x10,0xcf,0x81,0xfa,0x4d,0x23,0xaa,0x27,0x46,0xd2,0x7b,0xf9,0xe2,0x21,0x9f,0x72,0xc2,0x8d,0xc8,0xa3,0xc9,0xf7,0xe3,0x34,0xd4,0x92,0x88};
    static std::uint8_t c80[32] = {0x60,0x30,0x87,0xb7,0xe7,0x8e,0xc7,0x94,0x18,0xe3,0xbf,0xae,0x80,0x45,0xb0,0x2e,0xcb,0xb3,0xd1,0x93,0x3d,0xcc,0xba,0x7e,0x05,0xee,0x4c,0x81,0xbb,0x2c,0x72,0x1b};
    sm9_fp_from_bytes(a, a80);
    sm9_fp_tpl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c80, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_tpl");
    }
    static std::uint8_t a81[32] = {0x33,0x20,0x4b,0x1d,0xb3,0x50,0x60,0xcc,0xe9,0xd2,0x85,0x2d,0x9f,0x88,0x46,0x5b,0x41,0xc6,0x83,0xbd,0x85,0x63,0x84,0x6c,0xb4,0xc6,0xfb,0xcd,0xb2,0x35,0x0c,0xf4};
    static std::uint8_t c81[32] = {0x99,0x60,0xe1,0x59,0x19,0xf1,0x22,0x66,0xbd,0x77,0x8f,0x88,0xde,0x98,0xd3,0x11,0xc5,0x53,0x8b,0x38,0x90,0x2a,0x8d,0x46,0x1e,0x54,0xf3,0x69,0x16,0x9f,0x26,0xdc};
    sm9_fp_from_bytes(a, a81);
    sm9_fp_tpl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c81, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_tpl");
    }
    static std::uint8_t a82[32] = {0xb1,0x31,0x35,0xbb,0xa9,0xf6,0x52,0x9c,0x73,0x35,0xe1,0xf9,0xc1,0xc6,0x80,0x60,0xff,0x50,0x84,0xbd,0xeb,0xbc,0xde,0xd3,0x93,0x9e,0xc4,0x47,0x1a,0x48,0x71,0x26};
    static std::uint8_t c82[32] = {0xa7,0x13,0xa1,0x32,0xf8,0x9b,0xa9,0xf1,0xad,0x9a,0x4f,0x4d,0x5a,0x35,0xf2,0x98,0xba,0x0c,0x67,0xa3,0x8e,0x40,0xbe,0xc2,0xef,0xfd,0x16,0x85,0x88,0x36,0xc8,0x78};
    sm9_fp_from_bytes(a, a82);
    sm9_fp_tpl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c82, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_tpl");
    }
    static std::uint8_t a83[32] = {0x97,0x28,0x22,0x27,0x2d,0xae,0x24,0x4d,0x67,0x06,0xf9,0xd6,0x56,0x32,0xd9,0xe3,0x16,0xe8,0x2d,0x19,0x62,0xd1,0x5a,0xbe,0x5d,0xca,0x8b,0x0b,0x68,0x56,0x0f,0x5d};
    static std::uint8_t c83[32] = {0x58,0xf8,0x66,0x75,0x83,0xc3,0x1f,0x04,0x89,0x0d,0x96,0xe3,0x17,0x7a,0xff,0x1f,0x00,0xd3,0x60,0xb5,0xf3,0x7e,0x32,0x83,0x4e,0x80,0x6a,0xd2,0x72,0x5f,0xa3,0x1d};
    sm9_fp_from_bytes(a, a83);
    sm9_fp_tpl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c83, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_tpl");
    }
    static std::uint8_t a84[32] = {0x5f,0x6c,0x07,0x36,0x06,0x72,0x7d,0xaa,0x63,0xe2,0xc8,0x5c,0xc7,0xd7,0xa3,0xbe,0x5a,0xfe,0xc7,0xec,0x2d,0x17,0xa6,0x1f,0x25,0x88,0x84,0x3a,0x6f,0x69,0xe2,0x8c};
    static std::uint8_t c84[32] = {0x68,0x04,0x15,0xa2,0x10,0xb3,0xd2,0x0d,0x55,0xa4,0xad,0xc6,0x61,0xf8,0x23,0xf5,0xef,0x09,0xc4,0x79,0x6c,0xcc,0x03,0x81,0x8b,0x29,0xf1,0x87,0x6a,0xec,0x62,0x27};
    sm9_fp_from_bytes(a, a84);
    sm9_fp_tpl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c84, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_tpl");
    }
    static std::uint8_t a85[32] = {0x3f,0xf3,0x62,0x7a,0xca,0x93,0xb4,0x39,0x84,0xee,0xc8,0x63,0x7e,0xae,0x8f,0xd8,0xb9,0x17,0x31,0x24,0x44,0x59,0x0c,0xfe,0x91,0x3e,0x1c,0xde,0xdb,0x8c,0x64,0xd2};
    static std::uint8_t c85[32] = {0x09,0x9a,0x27,0x70,0x5d,0x17,0x75,0xba,0xb8,0xc8,0xad,0xda,0x86,0x7c,0xe8,0x45,0x09,0x53,0x00,0x21,0xb2,0x90,0x38,0x1f,0xce,0x4a,0xbb,0x74,0xaf,0x53,0xe8,0xf9};
    sm9_fp_from_bytes(a, a85);
    sm9_fp_tpl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c85, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_tpl");
    }
    static std::uint8_t a86[32] = {0x44,0x22,0x31,0x51,0xc9,0x84,0x38,0x64,0x74,0x3d,0x1e,0xd4,0x52,0x03,0x4a,0xca,0xf7,0xf1,0x1d,0xd3,0xd9,0x3e,0xbd,0x1a,0x5d,0x25,0x8e,0xc6,0x72,0x1d,0x58,0xda};
    static std::uint8_t c86[32] = {0x16,0x26,0x93,0xf5,0x59,0xe9,0x02,0x3b,0x86,0xb3,0xb1,0x2d,0x00,0x7b,0x19,0x1b,0xc5,0xe0,0xc6,0x30,0x71,0x41,0x48,0x73,0x32,0x01,0x11,0x2b,0x73,0x06,0xc5,0x11};
    sm9_fp_from_bytes(a, a86);
    sm9_fp_tpl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c86, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_tpl");
    }
    static std::uint8_t a87[32] = {0x74,0x79,0xa5,0xd6,0xd9,0xbd,0xeb,0x42,0x1f,0x03,0x08,0xaf,0x4f,0x3e,0xf1,0xc8,0xd1,0xec,0x78,0xf2,0x54,0xec,0x79,0xbd,0x60,0x44,0x89,0x09,0xc3,0x55,0xeb,0xec};
    static std::uint8_t c87[32] = {0xa7,0x2c,0xf1,0x84,0x8a,0x96,0x1a,0xd4,0x87,0x05,0x6e,0xbd,0xf8,0x2e,0x0e,0x15,0x53,0xd2,0xd7,0x8b,0xe4,0x4a,0x7e,0x5c,0x3b,0x5d,0xff,0xf5,0x66,0xb0,0x7e,0x47};
    sm9_fp_from_bytes(a, a87);
    sm9_fp_tpl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c87, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_tpl");
    }
    static std::uint8_t a88[32] = {0x22,0xcc,0x97,0xf7,0x7b,0x58,0x52,0x82,0x35,0xf4,0x7e,0x20,0xc7,0xcc,0x81,0x96,0x43,0xf1,0xe8,0x91,0x79,0x53,0xb0,0x9e,0x22,0xe1,0x1b,0xf2,0x24,0xe8,0x8f,0x13};
    static std::uint8_t c88[32] = {0x68,0x65,0xc7,0xe6,0x72,0x08,0xf7,0x86,0xa1,0xdd,0x7a,0x62,0x57,0x65,0x84,0xc2,0xcb,0xd5,0xb9,0xb4,0x6b,0xfb,0x11,0xda,0x68,0xa3,0x53,0xd6,0x6e,0xb9,0xad,0x39};
    sm9_fp_from_bytes(a, a88);
    sm9_fp_tpl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c88, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_tpl");
    }
    static std::uint8_t a89[32] = {0x3c,0xc6,0x80,0xfc,0x8c,0x7e,0x66,0x65,0x64,0x31,0x4e,0xe2,0xcd,0x76,0x9a,0xe5,0xe3,0x10,0xc4,0x74,0xfa,0x17,0xff,0x27,0x5d,0xcf,0xeb,0x92,0x90,0x59,0x18,0x1b};
    static std::uint8_t c89[32] = {0x00,0x13,0x82,0xf5,0xa2,0xd7,0x8c,0x3e,0x56,0x90,0x41,0x58,0x72,0xd5,0x09,0x6c,0x87,0x3f,0xba,0x13,0xd3,0xcd,0x0e,0x9a,0x34,0x00,0x27,0x8f,0xcd,0xba,0x02,0xd4};
    sm9_fp_from_bytes(a, a89);
    sm9_fp_tpl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c89, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_tpl");
    }
    static std::uint8_t a90[32] = {0x23,0xa0,0x24,0xc1,0x32,0xda,0x46,0xea,0xa3,0xf4,0xaa,0xb4,0xdf,0x06,0xe7,0x1b,0xbe,0x83,0x0c,0x97,0xb6,0x0d,0x34,0xef,0xc0,0x75,0x4d,0x45,0x7a,0x6b,0x85,0x5b};
    static std::uint8_t c90[32] = {0x6a,0xe0,0x6e,0x43,0x98,0x8e,0xd4,0xbf,0xeb,0xde,0x00,0x1e,0x9d,0x14,0xb5,0x53,0x3b,0x89,0x25,0xc7,0x22,0x27,0x9e,0xcf,0x41,0x5f,0xe7,0xd0,0x6f,0x42,0x90,0x11};
    sm9_fp_from_bytes(a, a90);
    sm9_fp_tpl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c90, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_tpl");
    }
    static std::uint8_t a91[32] = {0x75,0xc8,0xd3,0x20,0xa9,0x60,0x91,0x02,0x25,0x5b,0xb7,0xa8,0xf7,0x83,0x86,0x12,0x5f,0x52,0x80,0xc9,0xe9,0xca,0x7f,0xc7,0xf7,0xec,0x93,0x68,0x02,0x6e,0xe4,0x3e};
    static std::uint8_t c91[32] = {0xab,0x1a,0x79,0x61,0xf9,0x7e,0x0c,0x14,0x9a,0x0f,0x7b,0xaa,0xf0,0xfb,0xca,0xf1,0xfc,0x04,0xef,0x12,0xa2,0xe4,0x90,0x7c,0x02,0x56,0x1f,0x10,0x23,0xfb,0x67,0x3d};
    sm9_fp_from_bytes(a, a91);
    sm9_fp_tpl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c91, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_tpl");
    }
    static std::uint8_t a92[32] = {0x63,0xfc,0x00,0x20,0x5c,0x0d,0x08,0xda,0xcb,0x5f,0x28,0x99,0xe4,0xa8,0xc3,0x2f,0xdc,0x6e,0x36,0x1d,0xac,0x63,0x56,0xd7,0xa3,0x5c,0x0c,0x95,0x4c,0x5a,0xe5,0x87};
    static std::uint8_t c92[32] = {0x75,0xb4,0x00,0x61,0x11,0x83,0x73,0x9e,0x8c,0x19,0xce,0x7d,0xb8,0x6b,0x82,0x4a,0x73,0x58,0x0f,0x0d,0xea,0xaf,0x15,0xab,0x04,0xa4,0x8a,0x98,0x01,0xbf,0x6b,0x18};
    sm9_fp_from_bytes(a, a92);
    sm9_fp_tpl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c92, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_tpl");
    }
    static std::uint8_t a93[32] = {0x9b,0xcd,0x50,0x57,0xf4,0xba,0x71,0x8d,0xc4,0x14,0x24,0xa3,0x15,0x92,0xc2,0xb5,0x84,0x58,0x21,0xdd,0x74,0x42,0x77,0xae,0x36,0xea,0x72,0x09,0xa4,0xdc,0xb6,0xe2};
    static std::uint8_t c93[32] = {0x66,0xe7,0xf1,0x07,0xd8,0xe8,0x06,0xc5,0xa0,0x35,0x17,0x49,0x55,0x9a,0xb9,0x96,0x49,0x23,0x3f,0x02,0x27,0xd1,0x89,0x52,0xd9,0xe0,0x1f,0xcd,0x27,0xf3,0x99,0xac};
    sm9_fp_from_bytes(a, a93);
    sm9_fp_tpl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c93, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_tpl");
    }
    static std::uint8_t a94[32] = {0x84,0x42,0xd2,0xb8,0xf8,0x1b,0xc1,0xbb,0xa0,0x68,0x94,0x3f,0x59,0x73,0xfd,0xcf,0x17,0x59,0x1d,0xc6,0x58,0x25,0xac,0xf2,0x79,0x98,0x1c,0xec,0x6b,0xf8,0x76,0x88};
    static std::uint8_t c94[32] = {0x20,0x48,0x78,0x2a,0xe3,0x0b,0xf7,0x4f,0x35,0x32,0x66,0x1e,0x21,0x3e,0x6a,0xe3,0x02,0x26,0x32,0xbc,0xd3,0x7b,0x29,0x1f,0xa1,0xe9,0x20,0x75,0x7d,0x46,0xd8,0x9e};
    sm9_fp_from_bytes(a, a94);
    sm9_fp_tpl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c94, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_tpl");
    }
    static std::uint8_t a95[32] = {0x45,0x7e,0xd2,0xcc,0x24,0x2c,0x95,0x3b,0xe9,0xab,0x43,0xf7,0x3b,0xf8,0x7d,0x20,0x68,0x32,0x0a,0x5d,0xe3,0xe7,0xdf,0xc0,0x7b,0x63,0x67,0xfa,0x2b,0x81,0x7b,0x50};
    static std::uint8_t c95[32] = {0x1a,0x3c,0x78,0x64,0x69,0xe2,0x18,0xc1,0xe6,0xfe,0x20,0x95,0xbe,0x5a,0xb0,0x1c,0x16,0xa3,0x8b,0xce,0x91,0x3c,0xb0,0x65,0x8c,0xba,0x9c,0xc6,0x9f,0x33,0x2c,0x73};
    sm9_fp_from_bytes(a, a95);
    sm9_fp_tpl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c95, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_tpl");
    }
    static std::uint8_t a96[32] = {0xac,0x6a,0x25,0x9a,0xc6,0xa0,0xc6,0x83,0x00,0xd5,0xc0,0x81,0xfd,0x57,0xa6,0x08,0x91,0x0b,0x5e,0x1e,0x44,0x7f,0xd3,0x57,0x4b,0xa2,0x54,0x78,0x96,0xb6,0x97,0xbe};
    static std::uint8_t c96[32] = {0x98,0xbe,0x70,0xd0,0x4e,0x9b,0x05,0xa5,0x56,0x79,0xea,0xe6,0x0c,0xe9,0x63,0x8f,0x6f,0x3c,0xf3,0xc4,0x98,0x89,0x9c,0x4e,0x18,0x07,0xc7,0x19,0xfd,0x81,0x3c,0x40};
    sm9_fp_from_bytes(a, a96);
    sm9_fp_tpl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c96, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_tpl");
    }
    static std::uint8_t a97[32] = {0x46,0xb5,0x85,0xfb,0x17,0x89,0x50,0x9c,0x13,0x17,0x36,0x64,0xe2,0x60,0x83,0x46,0xc9,0x18,0x99,0x11,0x52,0xad,0xb4,0xda,0x5c,0xa3,0xc0,0x21,0xf3,0x7d,0x4a,0xbb};
    static std::uint8_t c97[32] = {0x1d,0xe0,0x91,0xf1,0x43,0xf8,0x4a,0xe2,0x63,0x41,0xf7,0xde,0xb1,0x92,0xc2,0x8f,0x39,0x57,0x37,0xe8,0xdd,0x8e,0x2f,0xb3,0x30,0x7b,0xa5,0x3d,0xf7,0x26,0x9a,0xb4};
    sm9_fp_from_bytes(a, a97);
    sm9_fp_tpl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c97, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_tpl");
    }
    static std::uint8_t a98[32] = {0x23,0x3b,0x57,0x45,0xfa,0x85,0x02,0x13,0x9e,0x29,0x63,0x08,0x36,0x0b,0x28,0x60,0x7c,0xe9,0x81,0x67,0x58,0x86,0x9a,0x45,0x17,0xcc,0xaf,0x99,0x57,0xaf,0x4b,0xcf};
    static std::uint8_t c98[32] = {0x69,0xb2,0x05,0xd1,0xef,0x8f,0x06,0x3a,0xda,0x7c,0x29,0x18,0xa2,0x21,0x79,0x21,0x76,0xbc,0x84,0x36,0x09,0x93,0xce,0xcf,0x47,0x66,0x0e,0xcc,0x07,0x0d,0xe3,0x6d};
    sm9_fp_from_bytes(a, a98);
    sm9_fp_tpl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c98, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_tpl");
    }
    static std::uint8_t a99[32] = {0x17,0xe8,0x93,0x73,0x3c,0x9a,0x53,0x1e,0x98,0xb1,0x3b,0x3d,0x83,0x20,0xa7,0x69,0x06,0x87,0x80,0x63,0x34,0x37,0xbc,0xc7,0xf0,0x5e,0x60,0xba,0xf1,0x6f,0x70,0xcd};
    static std::uint8_t c99[32] = {0x47,0xb9,0xba,0x59,0xb5,0xce,0xf9,0x5b,0xca,0x13,0xb1,0xb8,0x89,0x61,0xf6,0x3b,0x13,0x96,0x81,0x29,0x9c,0xa7,0x36,0x57,0xd1,0x1b,0x22,0x30,0xd4,0x4e,0x52,0x67};
    sm9_fp_from_bytes(a, a99);
    sm9_fp_tpl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c99, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_tpl");
    }
}